snippet gitignore_all "ignore all files and directories"
**
# !*.c
endsnippet

snippet gitignore_gcc "gitignore for gcc" b
##############gcc###################
*.exe
*.o
*.s
*.i
build
endsnippet

snippet gitignore_basic  "basic ignore"
##############git###################
.vscode
.cache
*.pdf
*.doc
*.docx
*.rar
*.txt
*.html
*.jpg
*.chm
*.log
*.zip
*.xml
tmp*
tags
build
bin
endsnippet

snippet gitignore_modelsim    "gitignore for modelsim project"
##############modelsim###################
work
*.dbg
*.mpf
*.mti
*.wlf
*.vstf
wlf*
transcript
virtuals.do
wave.do
*.ini
*.tr
*.ver
endsnippet

snippet gitignore_quartus     "gitignore for quartus project"
##############quartus###################
db
greybox_tmp
incremental_db
output_files
simulation
*.qws
*.ddb
*.xml
*.csv
*.wlf
*.bak
*.tmp2
*1.v
*bb.v
*.html
*.xml
*.rpt
*.stp
*.echo
*.done
*.smsg
*.summary
*.jdi
*.qdf
*.qip
*.jic
*.sh
endsnippet

snippet gitignore_nios    "gitignore for nios project"
##############nios###################
.qsys_edit
.settings
*_bsp
#仿真nios时产生的数据文件夹
mem_init
flash

*.bsp
*.cmp
*.html
*.rpt
*.sopcinfo
.force_relink
tags

*.d
obj
*.elf
*.map
*.objdump
*.html
*.mk
*.gdb
*.a
endsnippet

snippet gitignore_iar     "gitignore for iar project"
##############iar###################
doc
sch
Documentation

Exe
List
Obj
settings

*.dep
*.ewd
*.ewt
*.dep
*.tmp

*.map
*.html
*.rtf
*.hex
*.out

cscope.files
cscope.out
tags

*.vpwhist
*.vtg
endsnippet

snippet gitignore_vivado      "gitignore for vivado project"
##############vivado###################
.Xil
*.cache
*.hw
*.ioplanning
# IP选项改变可以重新生成
*.ip_user_files
*.runs
*.tmp
.cxl.ip

*.jou
*.log
*.str
*.sh
*.udo
*.f
*.do
*.bit

ies
questa
vcs
xsim

# IP一般情况下只需要xci文件，vivado就可以重新生成
# 所以默认忽略ip目录下的所有内容，然后针对ip单独手动添加xci文件
# 不使用core container
**/ip
# !**/ip/clk/*.xci

# block design 目录忽略文件。 所有文件都可以由*.bd文件重新生成
# 忽略某一文件夹下除指定类型外的其他文件
**/blockdesign/*
!**/blockdesign/*.bd
!**/blockdesign/hdl

############### sdk忽略文件####################
# sdk 目录下只保留 code 目录，用于存放源代码
# eclipse指定头文件目录时，也只指定到这一级
**/*.sdk/*
!**/*.sdk/user/
endsnippet

snippet gitignore_vivado_ip "vivado ip" 
** 
!*.xci
endsnippet

snippet gitignore_vivado_bd "vivado block design" 
** 
!*.bd
!**/hdl
endsnippet

snippet gitignore_petalinux "petalinux project ignore"
<plnx-proj-root>/.petalinux
<plnx-proj-root>/build/
<plnx-proj-root>/images/
<plnx-proj-root>/pre-built/
<plnx-proj-root>/project-spec/meta-plnx-generated/
<plnx-proj-root>/components/plnx-workspace
endsnippet

snippet gitignore_ise "gitignore ise project" 
##############ise###################
_xmsgs
iseconfig
_ngo
xlnx_auto_0_xdb
xst
planAhead_run_*

edit*.tcl
*.bgn
*.bit
*.blc
*.bld
*.csv
*.cmd_log
*.drc
*.debug
*.html
*.log
*.lso
*.map
*.mrp
*.map
*.ncd
#*.ngc
*.ngd
*.ngm
*.ngr
*.pad
*.par
*.pcf
*.prj
*.projectmgr
*.psr
*.ptwx
*.stx
*.syr
*.twr
*.twx
*.unroutes
*.ut
*.xdl
*.xtl
*.xml
*.xpi
*.xrpt
*.xreport
*.xst
*.xwbt
*.txt
*.cpj
*.mcs

impact.xsl
*.ipf

# IP 文件夹  *.xco和*.gise为必须，其他都可以生成
# 没有*.xise会弹出提示 
**/ip/**/doc
**/ip/**/_xmsgs
**/ip/**/tmp
**/ip/**/example_design
**/ip/**/implement
**/ip/**/simulation
**/ip/**/xlnx_auto_0_xdb

**/ip/**/*.asy
**/ip/**/*.ngc
**/ip/**/*.sym
**/ip/**/*.veo
# **/ip/**/*.xise
**/ip/**/*.tcl
**/ip/**/*.ncf
**/ip/**/*.cgp
endsnippet

snippet gitignore_ise_new "gitignore ise project" 
##############python###################
# 工程文件*.xise保存在一个单独的文件夹(ise)下
# ip, hdl 放在和工程所在目录同级的文件夹下

# ip目录下存放使用到的各种ip
# **/ip/gps_fifo/**
# !**/ip/gps_fifo/*.xco
# !**/ip/gps_fifo/*.xise

**/ise/**
!**/ise/*.xise

**/ip/**

endsnippet

snippet gitignore_python  "gitignore python project"
##############python###################
.idea
venv
.vscode
__pycache__

*.txt
*.bin

tmp*
test.py
demo.py

*.xml
*.iml
*.ini
*.log

build*
dist
*.spec
endsnippet

snippet gitignore_qt "gitignore Qt project" b
#######################qt###########################
Debug
Release

# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib

# Qt-es
object_script.*.Release
object_script.*.Debug
*_plugin_import.cpp
/.qmake.cache
/.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
*.qmlc
*.jsc
Makefile*
*build-*
*.qm

# Qt unit tests
target_wrapper.*

# QtCreator
*.autosave

# QtCreator Qml
*.qmlproject.user
*.qmlproject.user.*
endsnippet


snippet gitignore_esp32 "gitignore for esp32 project" b
.config
*.o
*.pyc

# gtags
GTAGS
GRTAGS
GPATH

# emacs
.dir-locals.el

# emacs temp file suffixes
*~
.#*
\#*#

# eclipse setting
.settings

# MacOS directory files
.DS_Store

# Example project files
examples/**/sdkconfig
examples/**/sdkconfig.old
examples/**/build

# Doc build artifacts
docs/_build/
docs/doxygen_sqlite3.db

# Downloaded font files
docs/_static/DejaVuSans.ttf
docs/_static/NotoSansSC-Regular.otf

# Unit test app files
tools/unit-test-app/sdkconfig
tools/unit-test-app/sdkconfig.old
tools/unit-test-app/build
tools/unit-test-app/builds
tools/unit-test-app/output
tools/unit-test-app/test_configs

# Unit Test CMake compile log folder
log_ut_cmake

# test application build files
tools/test_apps/**/build
tools/test_apps/**/sdkconfig
tools/test_apps/**/sdkconfig.old

# IDF monitor test
tools/test_idf_monitor/outputs

TEST_LOGS

# gcov coverage reports
*.gcda
*.gcno
coverage.info
coverage_report/

test_multi_heap_host

# VS Code Settings
.vscode/

# VIM files
*.swp
*.swo

# Clion IDE CMake build & config
.idea/
cmake-build-*/

# Results for the checking of the Python coding style and static analysis
.mypy_cache
flake8_output.txt

# ESP-IDF default build directory name
build

# lock files for examples and components
dependencies.lock

endsnippet

snippet gitignore_zig "gitignore zig project" b
.zig-cache
zig-out
endsnippet
